<?php

/**
 * Contains a function to make a WHIRLPOOL hash of a value.
 *
 * PHP Version 5
 *
 * @internal WHIRLPOOL is used because it is open source and patent-free.
 * WHIRLPOOL is comparable to SHA-512 and other 512/64 hashing algorithms
 * in terms of security.
 *
 * @category BuyLocal
 * @package  BuyLocal
 * @author   Kevin Fodness <kevin.fodness@gmail.com>
 * @author   Mike Pennisi <mpennisi@andrew.cmu.edu>
 * @author   Aaron Ryden <aryden@gmail.com>
 * @license  http://opensource.org/licenses/gpl-license.php GNU Public License
 * @link     http://code.google.com/p/buylocalopensourcerensselaer/
 */

/**
 * A function to make a WHIRLPOOL hash of a value.
 *
 * @param string $source The source string to hash. 
 *
 * @access public
 * @return string        The hashed value.
 */
function makeHash($source)
{
    return bin2hex(mhash(MHASH_WHIRLPOOL, $source));
}

?>